opkg: re-arrange source code into sub-directories
[oweals/opkg-lede.git] / Makefile.am
1 #SUBDIRS = etc replace familiar libbb
2 SUBDIRS =  etc familiar libbb libopkg src
3
4 HOST_CPU=@host_cpu@
5 BUILD_CPU=@build_cpu@
6 OPKGLIBDIR=@opkglibdir@ 
7 ALL_CFLAGS=-g -O -Wall -DHOST_CPU_STR=\"@host_cpu@\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DOPKGLIBDIR=\"@opkglibdir@\" -DDATADIR=\"@datadir@\"
8
9
10 bin_SCRIPTS = update-alternatives
11
12 interceptdir = $(datadir)/opkg/intercept
13 intercept_DATA = intercept/ldconfig intercept/depmod intercept/update-modules
14
15 install-data-hook:
16         chmod +x $(DESTDIR)$(datadir)/opkg/intercept/*
17
18 EXTRA_DIST = update-alternatives $(intercept_DATA)
19
20 MAINTAINERCLEANFILES= \
21         configure \
22         Makefile.in \
23         config.guess \
24         config.sub \
25         ltmain.sh \
26         .Makefile.am.swp \
27         aclocal.m4
28
29 package: all-recursive
30         STRIPPROG=$(STRIP) familiar/rules INSTALL=$$PWD/install-sh  binary-arch