1
0
mirror of https://git.dpkg.org/git/dpkg/dpkg-www.git synced 2025-05-02 20:11:41 +00:00
Files
dpkg-www/Makefile
2015-03-26 10:07:18 +01:00

21 lines
459 B
Makefile

# Makefile
VERSION = $(shell head -1 debian/changelog | sed 's/.*(//;s/).*//;s/-.*//')
all:
if ! grep -q "^PROG_VERSION=$(VERSION)$$" src/dpkg; then \
sed '/^PROG_VERSION=/s/^.*$$/PROG_VERSION=$(VERSION)/' \
< src/dpkg > src/dpkg.new; \
mv -f src/dpkg.new src/dpkg; \
chmod 755 src/dpkg; \
fi
install:
@ mkdir -p $(DESTDIR)/usr/lib/cgi-bin
cp -p src/dpkg $(DESTDIR)/usr/lib/cgi-bin/
clean:
rm -f `find . -name \*~`
distclean: clean