diff options
author | r <r@freesoftwareextremist.com> | 2021-04-02 18:00:21 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2021-04-02 18:00:21 +0000 |
commit | 089d4ac50026a9ec20746e59588df077b7d6ade8 (patch) | |
tree | 4edc63a1de4fb1d1f2c0dc4c25f00d06b6f12c7a /Makefile | |
parent | e31e9da6674a013535f4c0f9a6aa5accd800abb8 (diff) | |
download | bloat-089d4ac50026a9ec20746e59588df077b7d6ade8.tar.gz bloat-089d4ac50026a9ec20746e59588df077b7d6ade8.zip |
Update Makefile
- Respect $DESTDIR
- Fix uninstall target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -26,18 +26,19 @@ bloat.def.conf: < bloat.conf > bloat.def.conf install: bloat - mkdir -p $(BINPATH) $(SHAREPATH)/templates $(SHAREPATH)/static - cp bloat $(BINPATH)/bloat - chmod 0755 $(BINPATH)/bloat - cp -r templates/* $(SHAREPATH)/templates - chmod 0644 $(SHAREPATH)/templates/* - cp -r static/* $(SHAREPATH)/static - chmod 0644 $(SHAREPATH)/static/* + mkdir -p $(DESTDIR)$(BINPATH) \ + $(DESTDIR)$(SHAREPATH)/templates \ + $(DESTDIR)$(SHAREPATH)/static + cp bloat $(DESTDIR)$(BINPATH)/bloat + chmod 0755 $(DESTDIR)$(BINPATH)/bloat + cp -r templates/* $(DESTDIR)$(SHAREPATH)/templates + chmod 0644 $(DESTDIR)$(SHAREPATH)/templates/* + cp -r static/* $(DESTDIR)$(SHAREPATH)/static + chmod 0644 $(DESTDIR)$(SHAREPATH)/static/* uninstall: - rm -f $(BINPATH)/bloat - rm -fr $(SHAREPATH)/templates - rm -fr $(SHAREPATH)/static + rm -f $(DESTDIR)$(BINPATH)/bloat + rm -fr $(DESTDIR)$(SHAREPATH) clean: rm -f bloat |