Skip to content

Commit

Permalink
Merge pull request #63 from AleksArt000/main
Browse files Browse the repository at this point in the history
added DESTDIR support to makefile
  • Loading branch information
ilovethensa authored Oct 19, 2024
2 parents c7082fe + 7370251 commit fcaa7e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ install-libspm:
make DESTDIR=$(DESTDIR) install

install: build
install -D bin/cccp /usr/bin
if ! [ -f /etc/cccp.conf ]; then install -D cccp.conf /etc/cccp.conf; fi
install -D bin/cccp $(DESTDIR)/usr/bin/cccp
if ! [ -f $(DESTDIR)/etc/cccp.conf ]; then install -D cccp.conf $(DESTDIR)/etc/cccp.conf; fi

uninstall:
rm -rf /usr/bin/cccp && rm -rf /etc/cccp.conf && rm -rf /var/cccp/data
rm -rf $(DESTDIR)/usr/bin/cccp && rm -rf $(DESTDIR)/etc/cccp.conf && rm -rf $(DESTDIR)/var/cccp/data

clean:
rm -rf bin/*

0 comments on commit fcaa7e4

Please sign in to comment.