7 -all: $(TARGET) _snackmodule.so
10 test: test.o $(LIBNEWT)
11 $(CC) $(CFLAGS) -g -o test test.o $(LIBNEWT) $(LIBS)
12 @@ -67,14 +67,6 @@ showchars: showchars.o $(LIBNEWT)
13 showkey: showkey.o $(LIBNEWT)
14 $(CC) $(CFLAGS) -g -o showkey showkey.o $(LIBNEWT) $(LIBS)
16 -_snackmodule.so: snackmodule.c $(LIBNEWTSH)
17 - for ver in $(PYTHONVERS) ; do \
19 - $(CC) $(CFLAGS) -I/usr/include/$$ver $(SHCFLAGS) -c -o $$ver/snackmodule.o snackmodule.c ;\
20 - $(CC) --shared $(SHCFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L . -lnewt ;\
24 whiptail: $(NDIALOGOBJS) $(LIBNEWTSH)
25 $(CC) $(CFLAGS) -g -o whiptail $(NDIALOGOBJS) -L . -lnewt $(LIBS) -lpopt
27 @@ -121,17 +113,12 @@ install: $(LIBNEWT) install-sh whiptail
28 make -C po datadir=$(instroot)/$(datadir) install
29 install -m 644 -D libnewt.pc $(instroot)/$(pkgconfigdir)/libnewt.pc
31 -install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so
32 +install-sh: sharedlib $(WHIPTCLSO)
33 [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
34 install -m 755 $(LIBNEWTSH) $(instroot)/$(libdir)
35 ln -sf $(LIBNEWTSONAME) $(instroot)/$(libdir)/libnewt.so
36 ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/$(LIBNEWTSONAME)
37 [ -n "$(WHIPTCLSO)" ] && install -m 755 whiptcl.so $(instroot)/$(libdir) || :
38 - for ver in $(PYTHONVERS) ; do \
39 - [ -d $(instroot)/$(libdir)/$$ver/site-packages ] || install -m 755 -d $(instroot)/$(libdir)/$$ver/site-packages ;\
40 - install -m 755 $$ver/_snackmodule.so $(instroot)/$(libdir)/$$ver/site-packages ;\
41 - install -m 644 snack.py $(instroot)/$(libdir)/$$ver/site-packages ;\
45 echo "You need to rerun ./configure before continuing"