Skip to content

Commit

Permalink
install-* targets should also work now. Let's see how this works out …
Browse files Browse the repository at this point in the history
…in a deb.
  • Loading branch information
Wilm0r committed May 25, 2010
1 parent f60079b commit 4af3050
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# Program variables
objects = account.o bitlbee.o chat.o dcc.o help.o ipc.o irc.o irc_commands.o nick.o query.o root_commands.o set.o storage.o $(STORAGE_OBJS) user.o
headers = account.h bitlbee.h commands.h conf.h config.h help.h ipc.h irc.h log.h nick.h query.h set.h sock.h storage.h user.h lib/events.h lib/ftutil.h lib/http_client.h lib/ini.h lib/md5.h lib/misc.h lib/proxy.h lib/sha1.h lib/ssl_client.h lib/url.h protocols/ft.h protocols/nogaim.h
headers = account.h bitlbee.h commands.h conf.h help.h ipc.h irc.h log.h nick.h query.h set.h sock.h storage.h user.h lib/events.h lib/ftutil.h lib/http_client.h lib/ini.h lib/md5.h lib/misc.h lib/proxy.h lib/sha1.h lib/ssl_client.h lib/url.h protocols/ft.h protocols/nogaim.h
subdirs = lib protocols

ifeq ($(TARGET),i586-mingw32msvc)
Expand Down Expand Up @@ -81,7 +81,8 @@ uninstall-bin:

install-dev:
mkdir -p $(DESTDIR)$(INCLUDEDIR)
install -m 0644 $(headers) $(DESTDIR)$(INCLUDEDIR)
install -m 0644 config.h $(DESTDIR)$(INCLUDEDIR)
for i in $(headers); do install -m 0644 $(SRCDIR)$$i $(DESTDIR)$(INCLUDEDIR); done
mkdir -p $(DESTDIR)$(PCDIR)
install -m 0644 bitlbee.pc $(DESTDIR)$(PCDIR)

Expand All @@ -92,8 +93,8 @@ uninstall-dev:

install-etc:
mkdir -p $(DESTDIR)$(ETCDIR)
install -m 0644 motd.txt $(DESTDIR)$(ETCDIR)/motd.txt
install -m 0644 bitlbee.conf $(DESTDIR)$(ETCDIR)/bitlbee.conf
install -m 0644 $(SRCDIR)motd.txt $(DESTDIR)$(ETCDIR)/motd.txt
install -m 0644 $(SRCDIR)bitlbee.conf $(DESTDIR)$(ETCDIR)/bitlbee.conf

uninstall-etc:
rm -f $(DESTDIR)$(ETCDIR)/motd.txt
Expand Down
4 changes: 2 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ all:

install:
mkdir -p $(DESTDIR)$(MANDIR)/man8/ $(DESTDIR)$(MANDIR)/man5/
install -m 0644 bitlbee.8 $(DESTDIR)$(MANDIR)/man8/
install -m 0644 bitlbee.conf.5 $(DESTDIR)$(MANDIR)/man5/
install -m 0644 $(SRCDIR)bitlbee.8 $(DESTDIR)$(MANDIR)/man8/
install -m 0644 $(SRCDIR)bitlbee.conf.5 $(DESTDIR)$(MANDIR)/man5/
$(MAKE) -C user-guide $@

uninstall:
Expand Down
2 changes: 1 addition & 1 deletion doc/user-guide/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ install:
mkdir -p $(DESTDIR)$(DATADIR)
chmod 0755 $(DESTDIR)$(DATADIR)
rm -f $(DESTDIR)$(DATADIR)/help.txt # Prevent help function from breaking in running sessions
install -m 0644 help.txt $(DESTDIR)$(DATADIR)/help.txt
install -m 0644 $(SRCDIR)help.txt $(DESTDIR)$(DATADIR)/help.txt

uninstall:
rm -f $(DESTDIR)$(DATADIR)/help.txt
Expand Down

0 comments on commit 4af3050

Please sign in to comment.