Skip to content

Commit

Permalink
Makefile stuff, preparing for PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
Peterwmoss committed Nov 3, 2020
1 parent 7f88770 commit a4509fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ moc*
qmarkdown
qrc_qmarkdown.cpp
.clangd
*.tar.gz
src/**
16 changes: 6 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,10 @@ moc_preview.o: moc_preview.cpp

####### Install

install_target: all
@test -d $(INSTALL_ROOT)/usr/bin/ || $(MKDIR) $(INSTALL_ROOT)/usr/bin/
$(INSTALL_PROGRAM) $(TARGET) $(INSTALL_ROOT)/usr/bin/$(TARGET)
-$(STRIP) $(INSTALL_ROOT)/usr/bin/$(TARGET)
install: all
mkdir -p $(DESTDIR)${PREFIX}/bin
$(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)${PREFIX}/usr/bin/$(TARGET)
-$(STRIP) ${DESTDIR}${PREFIX}/usr/bin/$(TARGET)

uninstall_target:
-$(DEL_FILE) $(INSTALL_ROOT)/usr/bin/$(TARGET)

install: install_target

uninstall: uninstall_target
uninstall:
-$(DEL_FILE) ${DESTDIR}${PREFIX}/usr/bin/$(TARGET)

0 comments on commit a4509fc

Please sign in to comment.