Skip to content

Commit 96e85ed

Browse files
committed
Replace usage of notdir to be compatible with bsd make
1 parent 0087e82 commit 96e85ed

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile.in

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ DEBUG=$(GDBON) -DDEBUG -DXXDEBUG
6565
# The list of documentation files we wish to install
6666
DOCFILES_TO_INST=AUTHORS CHANGELOG HISTORY README.md INSTALL LICENSE database/usenet.db_struct database/mysql_db_struct.sql
6767
MANPAGES=docs/wendzelnntpd.8 docs/wendzelnntpadm.8 docs/create_certificate.8
68-
HTML_DOC_DIRS=$(shell cd docs/ && find site/ -type d)
6968

7069
all : wendzelnntpadm main.o log.o database.o cdpstrings.o server.o lexyacc charstack.o libfunc.o acl.o db_abstraction.o hash.o $(SQLITEOBJ) $(MYSQLOBJ) $(POSTGRESOBJ) $(OPENSSLOBJ) globals.o scripts/startup/init.d_script create_certificate docs/create_certificate.8 wendzelnntpd.conf
7170
expr `cat build` \+ 1 >build
@@ -234,11 +233,15 @@ uninstall :
234233
# data files
235234
-rm -f $(DESTDIR)$(package_datadir)/openssl.cnf
236235
# documentation
237-
-cd $(DESTDIR)$(docdir)/ && rm -f $(notdir $(DOCFILES_TO_INST))
236+
-cd $(DESTDIR)$(docdir)/ && for f in $(DOCFILES_TO_INST); do \
237+
rm -f `basename $$f`; \
238+
done
238239
-rm -f $(DESTDIR)$(docdir)/docs.pdf
239240
-rm -rf $(DESTDIR)$(docdir)/site/
240241
# manpages
241-
-cd $(DESTDIR)$(man8dir) && rm -f $(notdir $(MANPAGES))
242+
-cd $(DESTDIR)$(man8dir) && for f in $(MANPAGES); do \
243+
rm -f `basename $$f`; \
244+
done
242245
# directories
243246
-rmdir $(DESTDIR)$(confdir)
244247
-rmdir $(DESTDIR)$(sbindir)

0 commit comments

Comments
 (0)