2000-05-19 16:04:55 +00:00
|
|
|
# Toplevel Makefile for UPX
|
|
|
|
|
2006-01-24 05:25:20 +00:00
|
|
|
MAKEFLAGS += -rR
|
|
|
|
.SUFFIXES:
|
|
|
|
export SHELL = /bin/sh
|
2001-01-17 18:40:47 +00:00
|
|
|
|
|
|
|
srcdir = .
|
|
|
|
top_srcdir = .
|
|
|
|
|
|
|
|
|
2003-01-13 17:16:39 +00:00
|
|
|
default:
|
|
|
|
@echo "UPX info: please choose a target for 'make'"
|
|
|
|
|
2001-01-11 18:29:46 +00:00
|
|
|
all mostlyclean clean distclean maintainer-clean:
|
2006-05-04 17:35:16 +00:00
|
|
|
ifneq ($(wildcard $(HOME)/local/bin/bin-upx),)
|
2006-06-16 12:09:22 +00:00
|
|
|
# this needs special build tools
|
2000-05-19 16:04:55 +00:00
|
|
|
$(MAKE) -C src/stub $@
|
2006-06-16 12:11:11 +00:00
|
|
|
else
|
|
|
|
ifneq ($(wildcard $(HOME)/bin/bin-upx),)
|
|
|
|
# this needs special build tools
|
|
|
|
$(MAKE) -C src/stub $@
|
|
|
|
endif
|
2006-05-04 17:35:16 +00:00
|
|
|
endif
|
2000-05-19 16:04:55 +00:00
|
|
|
$(MAKE) -C src $@
|
|
|
|
$(MAKE) -C doc $@
|
|
|
|
|
2000-09-21 09:48:31 +00:00
|
|
|
dist: distclean
|
|
|
|
false
|
2000-05-19 16:04:55 +00:00
|
|
|
|
2006-06-11 11:05:57 +00:00
|
|
|
# automatically generate ChangeLog from Mercurial repo
|
2006-05-18 08:16:59 +00:00
|
|
|
ChangeLog:
|
2006-06-11 11:05:57 +00:00
|
|
|
ifneq ($(wildcard .hg/data),)
|
2006-05-18 08:16:59 +00:00
|
|
|
hg log --style=changelog > $@
|
2006-06-11 11:05:57 +00:00
|
|
|
else
|
|
|
|
@echo "UPX info: no hg repo found"
|
|
|
|
endif
|
2001-01-17 18:40:47 +00:00
|
|
|
|
2000-09-21 09:22:55 +00:00
|
|
|
|
2006-05-04 17:35:16 +00:00
|
|
|
.PHONY: default all mostlyclean clean distclean maintainer-clean
|
2006-05-18 08:16:59 +00:00
|
|
|
.PHONY: dist ChangeLog
|
2000-05-19 16:04:55 +00:00
|
|
|
|