upx/Makefile
2006-06-16 14:11:11 +02:00

42 lines
771 B
Makefile

# Toplevel Makefile for UPX
MAKEFLAGS += -rR
.SUFFIXES:
export SHELL = /bin/sh
srcdir = .
top_srcdir = .
default:
@echo "UPX info: please choose a target for 'make'"
all mostlyclean clean distclean maintainer-clean:
ifneq ($(wildcard $(HOME)/local/bin/bin-upx),)
# this needs special build tools
$(MAKE) -C src/stub $@
else
ifneq ($(wildcard $(HOME)/bin/bin-upx),)
# this needs special build tools
$(MAKE) -C src/stub $@
endif
endif
$(MAKE) -C src $@
$(MAKE) -C doc $@
dist: distclean
false
# automatically generate ChangeLog from Mercurial repo
ChangeLog:
ifneq ($(wildcard .hg/data),)
hg log --style=changelog > $@
else
@echo "UPX info: no hg repo found"
endif
.PHONY: default all mostlyclean clean distclean maintainer-clean
.PHONY: dist ChangeLog