SRFirewall/Makefile

23 lines
773 B
Makefile
Raw Normal View History

2014-04-08 17:04:47 -06:00
PREFIX=/usr/local
all: # Nothing here
install:
mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib/srfirewall \
2014-04-08 19:52:49 -06:00
$(DESTDIR)$(PREFIX)/etc/srfirewall
2014-04-08 17:12:00 -06:00
cp -r bin/* $(DESTDIR)$(PREFIX)/bin/
cp -r lib/* $(DESTDIR)$(PREFIX)/lib/srfirewall/
2014-04-12 09:27:58 -06:00
if [ ! -e $(DESTDIR)$(PREFIX)/etc/srfirewall/main.conf ]; then cp -r etc/* $(DESTDIR)$(PREFIX)/etc/srfirewall/; fi
2014-04-12 09:20:58 -06:00
install-etc:
2014-04-08 17:12:00 -06:00
cp -r etc/* $(DESTDIR)$(PREFIX)/etc/srfirewall/
2014-04-08 18:50:21 -06:00
install-docs:
mkdir -p $(DESTDIR)$(PREFIX)/share/doc/srfirewall
2014-04-12 12:10:32 -06:00
cp -r ChangeLog doc/* License ReadMe $(DESTDIR)$(PREFIX)/share/doc/srfirewall
upgrade:
mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib/srfirewall \
$(DESTDIR)$(PREFIX)/etc/srfirewall
cp -r bin/* $(DESTDIR)$(PREFIX)/bin/
cp -r lib/* $(DESTDIR)$(PREFIX)/lib/srfirewall/