summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-06 17:43:33 -0500
committerJune McEnroe <june@causal.agency>2019-11-06 17:43:33 -0500
commit70031693a5bee7fa1266a6c86c928bf7161479cd (patch)
treebbb4df784f442c0744b54310ce94ae3f6496a293 /Makefile
parentAdd Linux.mk (diff)
downloadpounce-70031693a5bee7fa1266a6c86c928bf7161479cd.tar.gz
pounce-70031693a5bee7fa1266a6c86c928bf7161479cd.zip
Don't install rc scripts or dirs on Linux
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 265781e..12ae05a 100644
--- a/Makefile
+++ b/Makefile
@@ -45,14 +45,15 @@ install: ${BINS} ${MANS} ${RCS}
 	install -d ${PREFIX}/bin ${MANDIR}/man1 ${ETCDIR}/rc.d
 	install ${BINS} ${PREFIX}/bin
 	install -m 644 ${MANS} ${MANDIR}/man1
-	install ${RCS} ${ETCDIR}/rc.d
-	install -d ${DIRS}
+	if [ -n '${RCS}' ]; then install -d ${ETCDIR}/rc.d; fi
+	if [ -n '${RCS}' ]; then install ${RCS} ${ETCDIR}/rc.d; fi
+	if [ -n '${DIRS}' ]; then install -d ${DIRS}; fi
 
 uninstall:
 	rm -f ${BINS:%=${PREFIX}/bin/%}
 	rm -f ${MANS:%=${MANDIR}/man1/%}
-	rm -f ${RCS:%=${ETCDIR}/%}
-	rmdir ${DIRS}
+	if [ -n '${RCS}' ]; then rm -f ${RCS:%=${ETCDIR}/%}; fi
+	if [ -n '${DIRS}' ]; then rmdir ${DIRS}; fi
 
 localhost.crt:
 	printf "[dn]\nCN=localhost\n[req]\ndistinguished_name=dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth" \
'3' class='logmsg'> Otherwise passing more than 13 parameters reads past the end of the array. 2020-06-12Document /quote needing /debug for outputJune McEnroe 2020-06-11Add OpenBSD to READMEJune McEnroe 2020-06-11Add warning to configure scriptJune McEnroe 2020-06-11Call static_assert by _Static_assertJune McEnroe OpenBSD assert.h does not #define static_assert, and this is the only thing that prevents catgirl from compiling without any issues there. 2020-06-08Add additional permission for linking with LibreSSLJune McEnroe https://www.gnu.org/licenses/gpl-faq.en.html#GPLIncompatibleLibs 2020-05-27Inherit PREFIX and MANDIR from env 1.0June McEnroe Oops. 2020-05-26Don't send zero-width characters to ncursesJune McEnroe 2020-05-25Define constants for window geometryJune McEnroe Also fixes uiDraw so that the split lines and marker don't overlap the main window, although that wasn't causing any real problems. 2020-05-24Tweak status line formattingJune McEnroe 2020-05-23Don't compress man page or use configure on FreeBSDJune McEnroe Also use DESTDIR in install. 2020-05-18Revert "Send blank line after 10 minutes idle"June McEnroe This reverts commit 1d5c4a5e346f0a295818441eb37697be283130ec. This is fixed instead by pounce using TCP keepalive. 2020-05-14Fix page scrolling distance for SplitLinesJune McEnroe 2020-05-12Do not stop when files in XDG dirs are inaccessibleJune McEnroe > When attempting to read a file, if for any reason a file in a certain > directory is unaccessible, e.g. because the directory is non-existant, > the file is non-existant or the user is not authorized to open the file, > then the processing of the file in that directory should be skipped. If > due to this a required file could not be found at all, the application > may chose to present an error message to the user. 2020-05-07Mark global variables in chat.h as externMichael Forney This fixes the build with gcc 10, which enables -fno-common by default. 2020-05-05Update email addressesJune McEnroe 2020-04-23Separate completeID state from complete stateJune McEnroe I think this is what causes QUITs to sometimes not appear, because wherever the complete match is skips over some IDs. 2020-04-20Don't clobber windows.swap in else of showAutoJune McEnroe 2020-04-19Save last user-selected window to switch back to from M-aJune McEnroe 2020-04-15Add M-= to mute windowsJune McEnroe 2020-04-15Add status indicator for showing ignored messagesJune McEnroe 2020-04-07Add M-< and M-> for scroll to top and bottomJune McEnroe Mirrored by S-Home and S-End but I guess I'm not documenting those... 2020-04-07Revert "Add C-o as alias of M-/"June McEnroe This reverts commit 3a156540b8d134b05d7c318ac047a0c690cdc950. Decided I don't like having two keys do the same thing (other than "special" keys). 2020-04-07Check ignores against idJune McEnroe Otherwise they do not work correctly for QUIT and NICK. This also lets you ignore private messages only by putting the nick in the third field. 2020-04-07Reset unreadSoft only on first unreadHardJune McEnroe Also rename unread{,Lines} to be maybe more clear and disambiguate with buffer lines. 2020-04-07Add M-q to collapse whitespaceJune McEnroe 2020-04-06Add split scrolling to READMEJune McEnroe 2020-04-06Voice, devoice self on /voice, /devoice with no paramsJune McEnroe 2020-04-06Op, deop self on /op, /deop without paramsJune McEnroe 2020-04-06Bump URL ring sizeJune McEnroe Should it be even bigger? I don't know. 2020-04-06Add scroll position to status lineJune McEnroe 2020-04-06Implement split scrollingJune McEnroe 2020-04-05Error on missing MODE parametersJune McEnroe 2020-04-05Error on invalid ISUPPORT valuesJune McEnroe 2020-04-04Add note about symlinking /etc/ssl/cert.pemJune McEnroe 2020-04-03Use gnu-case-range and gnu-conditional-omitted-operand extensionsJune McEnroe I'm sad to do this but I just can't stand writing (foo ? foo : bar) anymore. 2020-04-03Only treat /open param as count if single digitJune McEnroe 2020-04-02Use a for loop for getoptJune McEnroe 2020-04-02Generate short option string with a loopJune McEnroe Also change the way option structs are initialized so that the array sorts the same way as the switch statement. 2020-04-02Do not add an extra blank line on uiLoadJune McEnroe Adding one for the last unread position now, so this is mostly redundant, I think.