Commit 29a19046 authored by Mark Schouten's avatar Mark Schouten

New Makefile

parent cd127bbb
PREFIX=$(CURDIR)/debian PREFIX=$(CURDIR)/debian
PKGNAME=ypconfig
PKGPREFIX=$(PREFIX)/$(PKGNAME)
SDIR=ypconfig
install: ypconfig install:
ypconfig: PKGNAME := ypconfig
ypconfig: PKGPREFIX := $(PREFIX)/$(PKGNAME)
ypconfig: SDIR := ypconfig
ypconfig:
python setup.py install --force --root=$(PKGPREFIX) --no-compile -O0 --install-layout=deb python setup.py install --force --root=$(PKGPREFIX) --no-compile -O0 --install-layout=deb
mkdir -p $(PKGPREFIX)/etc/ypconfig/ mkdir -p $(PKGPREFIX)/etc/ypconfig/
mkdir -p $(PKGPREFIX)/usr/sbin/ mkdir -p $(PKGPREFIX)/usr/sbin/
mkdir -p $(PKGPREFIX)/usr/lib/ypconfig/ mkdir -p $(PKGPREFIX)/usr/lib/ypconfig/
install -m 750 ./ypconfig $(PKGPREFIX)/usr/sbin/ install -m 750 ypconfig $(PKGPREFIX)/usr/sbin/
install -m 755 ./playground/snmp-helper.py $(PKGPREFIX)/usr/lib/ypconfig install -m 755 playground/snmp-helper.py $(PKGPREFIX)/usr/lib/ypconfig
install -m 644 requirements.txt $(PKGPREFIX)/etc/ypconfig/
clean: clean:
rm -rf $(PREFIX)/ypconfig rm -rf $(PREFIX)/ypconfig
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment