mirror of
https://github.com/upx/upx.git
synced 2024-11-30 16:11:08 +00:00
42 lines
771 B
Makefile
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
|
|
|