"Fossies" - the Fresh Open Source Software Archive

Member "bed-3.1.1/Makefile" (20 May 2021, 28979 Bytes) of package /linux/misc/bed-3.1.1.src.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile": 3.1.0_vs_3.1.1.

    1 ifeq ($(findstring Windows,$(OS)),Windows)
    2 OpSys=Windows
    3 endif
    4 include config 
    5 include prognames.mk
    6 #MAKE=gmake
    7 ifneq ($(CONFIG_PLUGIN),y)
    8 ifneq ($(filter disass.plug,$(LINKIN) $(LINKINDYN)),)
    9 DISASS_USE=y
   10 endif
   11 endif
   12 
   13 ifneq ($(HAS_RE_SEARCH),y)
   14 REGEX=$(REGEX_DIR)/regex.o
   15 else
   16 REGEX=
   17 endif
   18 
   19 
   20 
   21 ifeq ($(CONFIG_PROGMAN),y)
   22 all:  has_appl has_file  $(REGEX) $(CONFFILE) bed.menu 
   23 else
   24 all:  has_appl has_file  $(REGEX) $(CONFFILE) 
   25 
   26 endif
   27 
   28 ifeq ($(BIOSDISK),y)
   29 	$(MAKE) -C biosdisk 
   30 endif
   31 	$(MAKE) -C utils
   32 	$(MAKE) -C plugins/examples  inlinklist plughelp
   33 	$(MAKE) -C src
   34 ifeq ($(CONFIG_PLUGIN),y)
   35 	$(MAKE) -C plugins/examples  give
   36 else
   37 ifeq ($(DISASS_USE),y)
   38 	$(MAKE) -C plugins/examples  disass-use
   39 endif
   40 endif
   41 
   42 
   43 ifeq ($(CONFIG_XBED),y)
   44 	$(MAKE) -C x11 $(XPROGRAM)
   45 endif
   46 	$(MAKE) -C doc
   47 
   48 BEDBASE=$(PROGRAM)-$(VERSION)
   49 LSMFILE=$(PROGRAM)-$(VERSION).lsm
   50 SPECFILE=$(PROGRAM)-$(VERSION).spec
   51 
   52 ROOTDIR:=$(abspath $(DESTDIR))
   53 
   54 root:
   55 	echo $(ROOTDIR)
   56 
   57 ifeq ($(CONFIG_XBED),y)
   58 XBEDMAN=$(ROOTDIR)$(MANDIR)/xbed.1 $(ROOTDIR)$(BINDIR)/xbed
   59 endif
   60 ifeq ($(CONFIG_PROGMAN),y)
   61 MENUBED=$(ROOTDIR)$(MENUPATH)/bed
   62 endif
   63 
   64 ifeq ($(SYSTEM),Linux)
   65 BINDIST=$(ROOTDIR)$(CONFDIR) $(ROOTDIR)$(CONFDIRLINK) $(ROOTDIR)$(BINDIR)/bed $(ROOTDIR)$(MANDIR)/bed.1.gz   $(MENUBED) $(XBEDMAN)
   66 else
   67 BINDIST=$(ROOTDIR)$(CONFDIR) $(ROOTDIR)$(CONFDIRLINK) $(ROOTDIR)$(BINDIR)/bed $(ROOTDIR)$(MANDIR)/bed.1   $(MENUBED) $(XBEDMAN)
   68 endif
   69 
   70 
   71 has_appl:has_appl.c
   72 	$(TOBUILDCC)  $< -o $@
   73 
   74 HAS_APPLICATIONS := $(shell ./has_appl)
   75 
   76 has:
   77 	echo $(HAS_APPLICATIONS)
   78 ifneq ($(HAS_APPLICATIONS),)
   79 BINDIST+=$(ROOTDIR)$(HAS_APPLICATIONS)/bed-binary-editor.desktop 
   80 endif
   81 ifeq ($(SYSTEM),FreeBSD)
   82 BINDIST+=$(ROOTDIR)/usr/local/lib/nss_dns.so.1 
   83 endif
   84 
   85 #SORT=LC_ALL=C sort
   86 install: installfiles
   87 ifeq ($(DESTDIR),)
   88 ifeq ($(HAS_FILE),y)
   89 	@bash ./addmagic
   90 endif
   91 ifeq ($(CONFIG_PROGMAN),y)
   92 	update-menus
   93 endif
   94 endif
   95 
   96 installfiles: $(CONFFILE)  #$(LSMFILE)
   97 ifeq ($(WINDOWS),yes)
   98 	cd "c:\\"
   99 endif
  100 	-$(MKDIR) $(ROOTDIR)$(BINDIR)
  101 	-rm   $(ROOTDIR)$(BINDIR)/$(EXEPROGRAM)
  102 	$(CP) src/$(EXEPROGRAM) $(ROOTDIR)$(BINDIR)
  103 	$(STRIP)  $(ROOTDIR)$(BINDIR)/$(EXEPROGRAM)
  104 	-rm   $(ROOTDIR)$(CONFDIRLINK)
  105 	-mv -f  $(ROOTDIR)$(CONFDIRLINK) $(ROOTDIR)$(CONFDIRLINK).bak
  106 	-$(MKDIR) $(ROOTDIR)$(CONFDIR)
  107 ifneq ($(WINDOWS),yes)
  108 	$(MKDIR) `dirname $(ROOTDIR)$(CONFDIRLINK)`
  109 	-mv  $(ROOTDIR)$(CONFDIR)/$(CONFFILE) $(ROOTDIR)$(CONFDIR)/~$(CONFFILE)
  110 endif
  111 	$(CP) $(CONFFILE) $(ROOTDIR)$(CONFDIR)
  112 	grep  BUILDEXEEXT build > $(ROOTDIR)$(CONFDIR)/build
  113 	echo "HAS_FILE := $(shell $(BEDSRCDIR)/has_file)" >> $(ROOTDIR)$(CONFDIR)/build
  114 	chmod 0644 	$(ROOTDIR)$(CONFDIR)/$(CONFFILE)
  115 	$(MAKE) -C doc install ROOTDIR=$(ROOTDIR)
  116 	$(MAKE) -C misc install ROOTDIR=$(ROOTDIR)
  117 ifeq ($(CONFIG_XBED),y)
  118 	$(MAKE) -C x11 install ROOTDIR=$(ROOTDIR)
  119 endif
  120 ifeq ($(CONFIG_PLUGIN),y)
  121 	$(MAKE) -C utils install ROOTDIR=$(ROOTDIR)
  122 	$(MAKE) -C plugins install ROOTDIR=$(ROOTDIR)
  123 
  124 else
  125 ifeq ($(DISASS_USE),y)
  126 	$(CP) plugins/examples/disass-use*  $(ROOTDIR)$(CONFDIR)
  127 endif
  128 endif
  129 ifneq ($(WINDOWS),yes)
  130 ifeq ($(CONFIG_PLUGIN),y)
  131 ifeq ($(HAVE_LN_R),n)
  132 	-$(SYMLINK)   -s $(BINDIR)/$(PROGRAM) $(ROOTDIR)$(CONFDIR)/utils/keyconfig
  133 else
  134 	-$(SYMLINK) -r  -s $(ROOTDIR)$(BINDIR)/$(PROGRAM) $(ROOTDIR)$(CONFDIR)/utils/keyconfig
  135 endif
  136 else
  137 ifeq ($(HAVE_LN_R),n)
  138 	-$(SYMLINK)  -s $(BINDIR)/$(PROGRAM) $(ROOTDIR)$(CONFDIR)/keyconfig
  139 else
  140 	-$(SYMLINK) -r -s $(ROOTDIR)$(BINDIR)/$(PROGRAM) $(ROOTDIR)$(CONFDIR)/keyconfig
  141 endif
  142 endif
  143 else
  144 ifeq ($(BIOSDISK),y)
  145 	$(MAKE) -C biosdisk install ROOTDIR=$(ROOTDIR)
  146 endif
  147 ifeq ($(PDCURSES),)
  148 	echo $(EXEPROGRAM) -k %1 %2 %3 %4 %5 %6 %7 %8 %9 > $(ROOTDIR)$(CONFDIR)/keyconfig.bat
  149 endif
  150 endif
  151 ifeq ($(PDCURSES),)
  152 #	$(MKDIR) $(ROOTDIR)$(CONFDIR)/terminfo
  153 #	$(MKDIR) $(ROOTDIR)$(CONFDIR)/terminfo/r
  154 #	cp   terminfo/r/rxvt* $(ROOTDIR)$(CONFDIR)/terminfo/r
  155 	cp -a  terminfo $(ROOTDIR)$(CONFDIR)
  156 endif
  157 	cp    LICENSE $(ROOTDIR)$(CONFDIR)
  158 ifeq ($(OpSys),Windows)
  159 	u2d     $(ROOTDIR)$(CONFDIR)/LICENSE
  160 endif
  161 	cp doc/datadir.txt $(ROOTDIR)$(CONFDIR)/README
  162 	cp public.pgp $(ROOTDIR)$(CONFDIR)
  163 ifeq ($(SYSTEM),Linux)
  164 	cp bedkeys $(ROOTDIR)$(CONFDIR)
  165 endif
  166 ifeq ($(SYSTEM),FreeBSD)
  167 	cp us.alt.kbd README.FreeBSD $(ROOTDIR)$(CONFDIR)
  168 endif
  169 ifeq ($(SYSTEM),SunOS)
  170 	cp README.OpenSolaris $(ROOTDIR)$(CONFDIR)
  171 endif
  172 ifeq ($(HAS_FILE),y)
  173 	$(CP) testmarks.bedm bedmagic bedmagic.short addmagic $(ROOTDIR)$(CONFDIR)
  174 endif
  175 ifneq ($(HAS_APPLICATIONS),)
  176 	$(MKDIR) $(ROOTDIR)$(HAS_APPLICATIONS)
  177 	cp progman/bed-binary-editor.desktop $(ROOTDIR)$(HAS_APPLICATIONS)/bed-binary-editor.desktop 
  178 endif
  179 ifeq ($(CONFIG_PROGMAN),y)
  180 #	cp bed.xpm $(ROOTDIR)$(ICONPATH)
  181 #	cp bedsmall.xpm $(ROOTDIR)$(ICONPATH)/mini/bed.xpm
  182 	$(MKDIR) $(ROOTDIR)$(MENUPATH)
  183 	cp bed.menu $(ROOTDIR)$(MENUPATH)/$(PROGRAM)
  184 	chmod 0644 $(ROOTDIR)$(MENUPATH)/$(PROGRAM)
  185 
  186 #	@rpm -q $(PROGRAM)|| echo Warning!! Desktop entries not created if no package $(PROGRAM) exists
  187 endif
  188 ifneq ($(WINDOWS),yes)
  189 
  190 ifeq ($(SYSTEM),FreeBSD)
  191 	$(SYMLINK) -r -f $(ROOTDIR)$(CONFDIR) $(ROOTDIR)$(CONFDIRLINK)
  192 else
  193 ifeq ($(HAVE_LN_R),n)
  194 	$(SYMLINK) -T -f  $(CONFDIR) $(ROOTDIR)$(CONFDIRLINK)
  195 else
  196 	$(SYMLINK) -r -T -f  $(ROOTDIR)$(CONFDIR) $(ROOTDIR)$(CONFDIRLINK)
  197 endif
  198 endif
  199 endif
  200 ifeq ($(SYSTEM),Android)
  201 	-$(MKDIR) $(ROOTDIR)$(BASEDIR)/tmp
  202 	-chmod 01777 $(ROOTDIR)$(BASEDIR)/tmp
  203 endif
  204 ifneq ($(WINDOWS),yes)
  205 	@cp uninstallhead $(ROOTDIR)$(CONFDIR)/uninstallbed.sh
  206 	@FILES=`for afile in $(BINDIST); do  test -e $$afile -o -L $$afile&&echo $$afile ;done`;if test . != .$(ROOTDIR); then SLASHROOT=`echo $(ROOTDIR)| sed -e 's/\\//\\\\\\//g'`;fi;find  $$FILES ! -type d -print |if test . != .$(ROOTDIR);then sed -e "s/$$SLASHROOT//g";else cat;fi |xargs echo $(REMOVE) ' ' >> $(ROOTDIR)$(CONFDIR)/uninstallbed.sh ;find  $$FILES -type d  -a  -print| if test . != .$(ROOTDIR);then sed -e "s/$$SLASHROOT//g";else cat;fi |$(SORT) -r|xargs echo $(RMDIR) ' ' >> $(ROOTDIR)$(CONFDIR)/uninstallbed.sh
  207 	@echo Uninstall with sh $(ROOTDIR)$(CONFDIR)/uninstallbed.sh
  208 endif
  209 	@echo Binary: '$(ROOTDIR)$(BINDIR)/$(EXEPROGRAM)'
  210 	@echo Support files: $(ROOTDIR)$(CONFDIR)
  211 
  212 
  213 
  214 cleanhere:
  215 	-rm  $(REGEX_DIR)/regex.o hosttest$(BUILDEXEEXT) has_appl$(BUILDEXEEXT) has_file$(BUILDEXEEXT)
  216 clean: cleanhere
  217 	$(MAKE) -C src clean
  218 	$(MAKE) -C utils clean
  219 	$(MAKE) -C plugins clean
  220 	$(MAKE) -C x11 clean
  221 	$(MAKE) -C biosdisk clean
  222 	-$(MAKE) -C doc clean
  223 	-$(MAKE) -C man2html clean
  224 
  225 
  226 realclean: cleanhere
  227 	-rm $(CONFFILE)  config.cache config.bak config.log config.status  bedrc buildonce getsize
  228 	 $(MAKE) -C x11 clean
  229 	$(MAKE) -C src realclean
  230 	- $(MAKE) -C doc realclean
  231 	- $(MAKE) -C man2html clean
  232 	 $(MAKE) -C utils realclean
  233 	 $(MAKE) -C plugins realclean
  234 	 $(MAKE) -C biosdisk realclean
  235 	-rm  $(REGEX_DIR)/regex.o
  236 
  237 
  238 echo:
  239 	echo $(BINDIST)
  240 .PHONY: %.dist %.bindist %.srcdist %.html
  241 HTMLPATH=../html
  242 DISTPATH=$(HTMLPATH)
  243 TGZSUF=.tar.xz
  244 SRCBASE=$(PROGRAM)-$(VERSION).src
  245 SRCARGFILE=$(SRCBASE)$(TGZSUF)
  246 SRCLSMFILE=$(SRCBASE).lsm
  247 SRCASCFILE=$(SRCBASE).asc
  248 #s/$(TGZSUF)/$(TGZSUF)/g
  249 
  250 
  251 SOURCEFILE=$(DISTPATH)/download/$(PROGRAM)-$(VERSION).src$(TGZSUF) 
  252 ifeq ($(CONFIG_STATIC),y)
  253 ELFBASE=$(PROGRAM)-$(VERSION).$(SYSTEM).ELF-static$(ELFSIZE)
  254 else
  255 #ELFBASE=$(PROGRAM)_$(VERSION)-$(SYSTEM)
  256 ELFBASE=$(PROGRAM)-$(VERSION).$(SYSTEM)
  257 endif
  258 ELFARGFILE=$(ELFBASE)$(ELFSIZE)$(TGZSUF) 
  259 ELFLSMFILE=$(ELFBASE).lsm
  260 ELFASCFILE=$(ELFBASE).asc
  261 WIN32ARGFILE=$(PROGRAM)-$(VERSION).win32.zip
  262 WIN95ARGFILE=$(PROGRAM)-$(VERSION).win95.zip
  263 #NWIN32ARGFILE=$(PROGRAM)-$(VERSION).win32ncurses.zip
  264 NWIN32ARGFILE=$(PROGRAM)-$(VERSION).win32ncuronly.zip
  265 
  266 WIN64ARGFILE=$(PROGRAM)-$(VERSION).win64.zip
  267 #NWIN64ARGFILE=$(PROGRAM)-$(VERSION).win64ncuronly.zip
  268 NWIN64ARGFILE=$(PROGRAM)-$(VERSION).win64ncurses.zip
  269 
  270 
  271 FREEBSDARGFILE=$(PROGRAM)-$(VERSION).FreeBSD64.tbz
  272 #FREEBSDARGFILE=$(PROGRAM)-0.2.22.FreeBSD64$(TGZSUF)
  273 #FREEBSDARGFILE=$(PROGRAM)-0.2.22.FreeBSD64$(TGZSUF)
  274 OPENSOLARISFILE=$(PROGRAM)-$(VERSION).SunOS.tar.xz
  275 STATICARGFILE=$(PROGRAM)-$(VERSION).bin.ELF-static$(TGZSUF)
  276 #NONSTATICARGFILE32=$(PROGRAM)-$(VERSION).Linux32$(TGZSUF)
  277 #NONSTATICARGFILE64=$(PROGRAM)-$(VERSION).Linux64$(TGZSUF)
  278 NONSTATICARGFILE64=$(PROGRAM)_$(VERSION)_amd64.deb
  279 NONSTATICARGFILE32=$(PROGRAM)_$(VERSION)_i386.deb
  280 NONSTATICARGFILE_ARMHF=$(PROGRAM)_$(VERSION)_armhf.deb
  281 ANDROIDARGFILE=$(PROGRAM)-$(VERSION)-arm-android-17.tar.gz
  282 ANDROID64ARGFILE=$(PROGRAM)-$(VERSION).arm64.android8.0.tar.gz
  283 RPMFILE=bed-$(VERSION)-1.i686.rpm
  284 
  285 #LSMFILE=$(PROGRAM)-$(VERSION).lsm
  286 FULLELFFILE=$(DISTPATH)/download/$(ELFARGFILE)
  287 #PGPSIGNPROG=gpg -s --use-embedded-filename -a -b -u 0x94BA03AE 
  288 #PGPSIGNPROG=gpg2 -s --use-embedded-filename -b -u 0x94BA03AE 
  289 
  290 #PGPSIGNPROG=gpg2 -s   -b -u 0x94BA03AE 
  291 
  292 # --use-embedded-filename
  293 
  294 #  --comment string
  295 
  296 #       --no-comments
  297 
  298 #--clearsign
  299 
  300 
  301 #PGPSIGNPROG= pgps -a -b -u 0x94BA03AE 
  302 
  303 PGPSIGNPROG=gpg --cert-digest-algo=SHA256 -s -a  -b -u 0x94BA03AE -u 0x65D385A5 
  304 
  305 mkuninstall:
  306 	@cp uninstallhead $(CONFDIR)/uninstallbed.sh
  307 	@FILES=`for afile in $(BINDIST); do  test -e $$afile -o -L $$afile&&echo $$afile ;done`; find  $$FILES ! -type d|xargs echo $(REMOVE) ' ' >> $(CONFDIR)/uninstallbed.sh ;find  $$FILES -type d|$(SORT) -r|xargs echo $(RMDIR) ' ' >> $(CONFDIR)/uninstallbed.sh
  308 #	find  $(BINDIST) -type f|xargs 'echo rm -f '
  309 #	find  $(BINDIST) -type d|$(SORT) -r|xargs 'echo rmdir '
  310 
  311 %.bindist: $(BINARIES)
  312 	mkdir -p $*/download
  313 	tar --use-compress-program="xz -ze" -cf $*/download/$(ELFARGFILE)   $(BINDIST) 
  314 #	env VERSION=$(VERSION) ELFBASE=$(ELFBASE) SRCBASE=$(SRCBASE) DISTPATH=$*/download sh ./mklsmelf > $*/download/$(ELFLSMFILE)
  315 %.srcdist:
  316 	mkdir -p $*/download
  317 	tar --use-compress-program="xz -ze" -cf  $*/download/$(PROGRAM)-$(VERSION).src$(TGZSUF)  -C ../  $(PROGRAM)-$(VERSION) 
  318 #	env  ELFBASE=$(ELFBASE) SRCBASE=$(SRCBASE) VERSION=$(VERSION) DISTPATH=$*/download bash ./mklsm > $*/download/$(SRCLSMFILE)
  319 %.html: mkbed 
  320 	mkdir -p $*
  321 	$(MAKE) -C doc bed.html
  322 	cp doc/bed.html $*/bed.1.html
  323 	$(MAKE) -C doc menu.html
  324 	env SRCARGFILE=$(SRCARGFILE) WIN32ARGFILE=$(WIN32ARGFILE)  WIN95ARGFILE=$(WIN95ARGFILE)  OPENSOLARISFILE=$(OPENSOLARISFILE) FREEBSDARGFILE=$(FREEBSDARGFILE) NONSTATICARGFILE32=$(NONSTATICARGFILE32) ANDROIDARGFILE=$(ANDROIDARGFILE) NONSTATICARGFILE_ARMHF=$(NONSTATICARGFILE_ARMHF) NONSTATICARGFILE64=$(NONSTATICARGFILE64) STATICARGFILE=$(STATICARGFILE) ELFBASE=$(ELFBASE) SRCBASE=$(SRCBASE) VERSION=$(VERSION) DISTPATH=$*/download bash ./mkbed | sh dseonlyext.sh >$*/download.html
  325 	sh dseext.sh <$*/download.html > $*/downloaddse.html
  326 	env  BEDVERSION=$(VERSION) LSMFILE=$(LSMFILE)  ELFBASE=$(ELFBASE) SRCBASE=$(SRCBASE) VERSION=$(VERSION) DISTPATH=$*/download bash ./mkoldpage.sh > $*/oldbeds.html
  327 	cp doc/menu.html $*/menu.html
  328 
  329 #	env  WIN32ARGFILE=$(WIN32ARGFILE)  OPENSOLARISFILE=$(OPENSOLARISFILE) FREEBSDARGFILE=$(FREEBSDARGFILE) NONSTATICARGFILE32=$(NONSTATICARGFILE32) NONSTATICARGFILE64=$(NONSTATICARGFILE64) STATICARGFILE=$(STATICARGFILE) ELFBASE=$(ELFBASE) SRCBASE=$(SRCBASE) VERSION=$(VERSION) DISTPATH=$*/download bash ./mknewlsm > $*/download/$(LSMFILE)
  330 %.dist: %.srcdist %.bindist %.sign
  331 	echo $*
  332 
  333 
  334 
  335 
  336 #s/FREEBSDARGFILE/OPENSOLARISFILE/g
  337 
  338 %.sign:
  339 	$(PGPSIGNPROG)   --comment $(SRCARGFILE) $*/download/$(SRCARGFILE) 
  340 	$(PGPSIGNPROG)   --comment $(WIN64ARGFILE) $*/download/$(WIN64ARGFILE) 
  341 	$(PGPSIGNPROG)   --comment $(NWIN64ARGFILE) $*/download/$(NWIN64ARGFILE) 
  342 	$(PGPSIGNPROG)   --comment $(WIN32ARGFILE) $*/download/$(WIN32ARGFILE) 
  343 	$(PGPSIGNPROG)   --comment $(NWIN32ARGFILE) $*/download/$(NWIN32ARGFILE) 
  344 	$(PGPSIGNPROG)   --comment $(NONSTATICARGFILE32) $*/download/$(NONSTATICARGFILE32) 
  345 	$(PGPSIGNPROG)   --comment $(NONSTATICARGFILE64) $*/download/$(NONSTATICARGFILE64) 
  346 	$(PGPSIGNPROG)   --comment $(NONSTATICARGFILE_ARMHF) $*/download/$(NONSTATICARGFILE_ARMHF) 
  347 	$(PGPSIGNPROG)   --comment $(ANDROIDARGFILE) $*/download/$(ANDROIDARGFILE) 
  348 #	make $*/download/$(LSMFILE) 
  349 
  350 #	$(PGPSIGNPROG)  $*/download/$(STATICARGFILE)
  351 #	env  WIN32ARGFILE=$(win32argfILE)  OPENSOLARISFILE=$(OPENSOLARISFILE) FREEBSDARGFILE=$(FREEBSDARGFILE) NONSTATICARGFILE32=$(NONSTATICARGFILE32) NONSTATICARGFILE64=$(NONSTATICARGFILE64) STATICARGFILE=$(STATICARGFILE) ELFBASE=$(ELFBASE) SRCBASE=$(SRCBASE) VERSION=$(VERSION) DISTPATH=$*/download bash ./mknewlsm > $*/download/$(LSMFILE)
  352 
  353 %.lsm: ./settings
  354 	env SRCARGFILE=$(SRCARGFILE) WIN32ARGFILE=$(WIN32ARGFILE)  WIN95ARGFILE=$(WIN95ARGFILE)  OPENSOLARISFILE=$(OPENSOLARISFILE) FREEBSDARGFILE=$(FREEBSDARGFILE) NONSTATICARGFILE32=$(NONSTATICARGFILE32) NONSTATICARGFILE64=$(NONSTATICARGFILE64) STATICARGFILE=$(STATICARGFILE) ELFBASE=$(ELFBASE) SRCBASE=$(SRCBASE) VERSION=$(VERSION) DISTPATH=../html/download bash ./mknewlsm > $*.lsm
  355 #	env  WIN32ARGFILE=$(WIN32ARGFILE)  FREEBSDARGFILE=$(FREEBSDARGFILE) NONSTATICARGFILE=$(NONSTATICARGFILE)  STATICARGFILE=$(STATICARGFILE) ELFBASE=$(ELFBASE) SRCBASE=$(SRCBASE) VERSION=$(VERSION) DISTPATH=../html/download bash ./mknewlsm > $(LSMFILE)
  356 	echo $*
  357 
  358 .PHONY: lsm
  359 
  360 lsm: 	
  361 	-rm $(LSMFILE)
  362 	$(MAKE) $(LSMFILE)
  363 ifeq ($(OpSys),Windows)
  364 	u2d  $(LSMFILE)
  365 endif
  366 
  367 
  368 
  369 BEDTMP=c:/tmp/bed-$(VERSION)
  370 
  371 MIXBINDIR=`cygpath -m $(BINDIR)`
  372 pdir:
  373 	echo var $(PWD)
  374 	cd "c:\\"; ls;pwd; echo var $(PWD)
  375 winbindist:
  376 	-rm -i ../html/download/bed-$(VERSION).win32.zip
  377 
  378 
  379 ifeq ($(CYGWIN),no)
  380 	cd c:/; (zip  -z -r $(PWD)/../html/download/bed-$(VERSION).win32.zip   Program\ Files/bed  Windows/$(EXEPROGRAM) 'ProgramData/Menu Start/bed.lnk' 'Windows/Start Menu/bed.lnk' < $(PWD)/bedmingw.txt)
  381 else
  382 	cd c:/; (zip  -z -r $(PWD)/../html/download/bed-$(VERSION).win32.zip   Program\ Files/bed Windows/cygwin1.dll Windows/$(EXEPROGRAM) 'ProgramData/Menu Start/bed.lnk' 'Windows/Start Menu/bed.lnk' < $(PWD)/bedcygwin.txt)
  383 endif
  384 	bash ../html/mkbedpad.sh $(VERSION)
  385 
  386 #	zip  -z -r $(PWD)/../html/download/bed-$(VERSION).win32.zip $(PWD)/bedwin32.txt  "`cygpath -m $(CONFDIR)`" $(MIXBINDIR)/cygwin1.dll $(MIXBINDIR)/$(EXEPROGRAM) '$(ALLUSERSPROFILE)/Menu Start/bed.lnk' 'c:/windows/Start Menu/bed.lnk' < bedwin32.txt
  387 
  388 #CYGWIN=no
  389 nwinbindist:
  390 	-rm -i bed-$(VERSION).win32.zip 
  391 	zip  -z -r bed-$(VERSION).win32.zip bedwin32.txt $(BINDIR)/cygwin1.dll  $(BINDIR)/$(EXEPROGRAM)  $(BINDIR)/bedn.exe $(CONFDIR) < bedwin32.txt
  392 
  393 	
  394 #	-mkdir $(BEDTMP)
  395 #	cp  $(BINDIR)/$(EXEPROGRAM) $(BEDTMP)
  396 #	cp  $(CONFDIR)/misc/*.bedda $(BEDTMP)
  397 #	cp  $(CONFDIR)/doc/bed* $(BEDTMP)
  398 #	cp  $(CONFDIR)/* $(BEDTMP)
  399 #	cd $(BEDTMP); pkzip  -r bedzip *.*
  400 
  401 #	pkzip  -r bedzip $(BINDIR)/$(EXEPROGRAM) $(CONFDIR)
  402 #	find $(CONFDIR) ! -type f -a -printf \%p\  -a
  403 
  404 
  405 #	tar -cf bedtar $(BINDIR)/$(EXEPROGRAM) $(CONFDIR)
  406 #	gzip  bedtar
  407 #	mv be$(TGZSUF) bed-$(VERSION).win32$(TGZSUF)
  408 
  409 #	tar -cf bedtar $(BINDIR)/$(EXEPROGRAM) $(CONFDIR)
  410 #	gzip  bedtar
  411 #	mv be$(TGZSUF) bed-$(VERSION).win32$(TGZSUF)
  412 
  413 #	mv bedwin32.zip bed-$(VERSION).win32.zip
  414 #	zip -9 -r bedwin32.zip  $(BINDIR)/$(EXEPROGRAM) $(CONFDIR)
  415 #	mv bedwin32.zip bed-$(VERSION).win32.zip
  416 
  417 
  418 
  419 
  420 sign: $(DISTPATH).sign 
  421 dist: $(DISTPATH).dist
  422 srcdist: $(DISTPATH).srcdist
  423 bindist: $(DISTPATH).bindist
  424 html:$(DISTPATH).html
  425 files:
  426 	tar -a -tf $(FULLELFFILE)|sed -e 's/^/\//'> files
  427 spec:  files
  428 	PROGMANEXTRA= MENUPATH=$(MENUPATH) VERSION=$(VERSION) DISTPATH=$(HTMLPATH)/download HAS_APPLICATIONS=$(HAS_APPLICATIONS) bash ./mkspec > $(PROGRAM)-$(VERSION).spec
  429 solspec:  files
  430 	PROGMANEXTRA= MENUPATH=$(MENUPATH) VERSION=$(VERSION) DISTPATH=$(HTMLPATH)/download HAS_APPLICATIONS=$(HAS_APPLICATIONS) bash ./mksolspec > $(PROGRAM)-$(VERSION).spec
  431 .PHONY: control
  432 control:
  433 	ICONPATH=$(ICONPATH) MENUPATH=$(MENUPATH) KDEMENU=$(KDEMENU) GNOMEMENU=$(GNOMEMENU) XBEDMENU=$(XBEDMENU) BEDMENU=$(BEDMENU) VERSION=$(VERSION) DISTPATH=$(HTMLPATH)/download bash debian/control.sh > debian/control
  434 	CONFDIR=$(CONFDIR) ICONPATH=$(ICONPATH) MENUPATH=$(MENUPATH) KDEMENU=$(KDEMENU) GNOMEMENU=$(GNOMEMENU) XBEDMENU=$(XBEDMENU) BEDMENU=$(BEDMENU) VERSION=$(VERSION) DISTPATH=$(HTMLPATH)/download bash debian/postinst.sh > debian/postinst
  435 	CONFDIR=$(CONFDIR) ICONPATH=$(ICONPATH) MENUPATH=$(MENUPATH) KDEMENU=$(KDEMENU) GNOMEMENU=$(GNOMEMENU) XBEDMENU=$(XBEDMENU) BEDMENU=$(BEDMENU) VERSION=$(VERSION) DISTPATH=$(HTMLPATH)/download bash debian/preinst.sh > debian/preinst
  436 	CONFDIR=$(CONFDIR) ICONPATH=$(ICONPATH) MENUPATH=$(MENUPATH) KDEMENU=$(KDEMENU) GNOMEMENU=$(GNOMEMENU) XBEDMENU=$(XBEDMENU) BEDMENU=$(BEDMENU) VERSION=$(VERSION) DISTPATH=$(HTMLPATH)/download bash debian/postrm.sh > debian/postrm
  437 mount:
  438 	-mount /mnt/floppy
  439 flop: mount /mnt/floppy.dist
  440 
  441 
  442 #RPMROOT=/usr/src/redhat
  443 #RPMROOT=/usr/src/RPM
  444 RPMROOT=~/rpmbuild
  445 #RPM = rpm
  446 RPM = rpmbuild
  447 #RPMFLAGS =  --sign -ba
  448 RPMFLAGS =  -ba
  449 
  450 rpm: spec
  451 	$(MKDIR) $(RPMROOT)/SOURCES
  452 	cp $(SOURCEFILE) $(RPMROOT)/SOURCES/$(PROGRAM)-$(VERSION).src$(TGZSUF)
  453 	$(MKDIR) $(RPMROOT)/SPECS
  454 	cp  $(PROGRAM)-$(VERSION).spec $(RPMROOT)/SPECS/$(PROGRAM)-$(VERSION).spec 
  455 	$(RPM) $(RPMFLAGS) $(PROGRAM)-$(VERSION).spec 
  456 
  457 PKGROOT=/export/home/jka/packages
  458 #RPM = rpm
  459 PKG = pkgbuild
  460 #RPMFLAGS =  --sign -ba
  461 PKGFLAGS =  -ba
  462 sunos: solspec
  463 	$(MKDIR) $(PKGROOT)/SOURCES
  464 	cp $(SOURCEFILE) $(PKGROOT)/SOURCES/$(PROGRAM)-$(VERSION).src$(TGZSUF)
  465 	$(MKDIR) $(PKGROOT)/SPECS
  466 	cp  $(PROGRAM)-$(VERSION).spec $(PKGROOT)/SPECS/$(PROGRAM)-$(VERSION).spec 
  467 	$(PKG) $(PKGFLAGS) $(PROGRAM)-$(VERSION).spec 
  468 
  469 package: Makefile
  470 	$(RPM) --short-circuit $(RPMFLAGS) $(PROGRAM)-$(VERSION).spec 
  471 
  472 installrpm:
  473 	$(RPM) --short-circuit  --sign  -bi $(PROGRAM)-$(VERSION).spec 
  474 
  475 
  476 ifneq ($(WINDOWS),yes)
  477 CONFFILESH=mkbedrc.sh
  478 else
  479 CONFFILESH=mkbedrc95.sh
  480 endif
  481 $(CONFFILE):$(CONFFILESH) plugins/examples/Makefile config
  482 	$(MAKE) -C plugins/examples ingive
  483 	env INLINKALL="$(INLINKALL)" HAS_X=$(HAS_X) CONFIG_LINKINPLUGINS=$(CONFIG_LINKINPLUGINS) CONFIG_PLUGIN=$(CONFIG_PLUGIN) CONFIG_THREADS=$(CONFIG_THREADS) PDCURSES=$(PDCURSES) CONFDIRLINK=$(CONFDIRLINK) CONFDIR=$(CONFDIR) bash $(CONFFILESH)> $(CONFFILE) 
  484 ifeq ($(WINDOWS),yes)
  485 	u2d $(CONFFILE)
  486 endif
  487 #s/\$(CONFFILESH)/mkbedrc.sh/g
  488 unixbedrc:$(CONFFILESH) plugins/examples/Makefile config
  489 	$(MAKE) -C plugins/examples ingive
  490 	env HAS_X=$(HAS_X) CONFIG_LINKINPLUGINS=$(CONFIG_LINKINPLUGINS) CONFIG_PLUGIN=$(CONFIG_PLUGIN) CONFIG_THREADS=$(CONFIG_THREADS) PDCURSES=$(PDCURSES) CONFDIRLINK=$(CONFDIRLINK) CONFDIR=$(CONFDIR) bash mkbedrc.sh> unixbedrc
  491 ifeq ($(WINDOWS),yes)
  492 	u2d unixbedrc
  493 endif
  494 
  495 DATE=`date +%M-%H-%d-%m-%Y`
  496 
  497 backup: 
  498 	date > ../backup/backupfile.start
  499 	tar --use-compress-program="xz -ze" -cf ../backup/$(PROGRAM)-$(VERSION).backup.tar.xz-$(DATE) -N `cat ../backup/backupfile` `find . ! -name *.o* -a ! -name core -a ! -name *.plug -a ! -type d -a ! -path ./src/$(PROGRAM) -a -printf %p `
  500 	move  ../backup/backupfile.start ../backup/backupfile
  501 fullbackup: 
  502 	date > ../backup/backupfile.start
  503 	tar --use-compress-program="xz -ze" -cf ../backup/$(PROGRAM)-$(VERSION).backup.tar.xz-$(DATE) `find . ! -name *.o* -a ! -name core -a ! -name *.plug -a ! -type d -a ! -path ./src/$(PROGRAM) -a -printf %p `
  504 	move  ../backup/backupfile.start ../backup/backupfile
  505 try:
  506 	 echo $(TESTVAR)
  507 
  508 ./configure:./configure.ac src/defines.h.in
  509 	autoconf
  510 
  511 
  512 uninstall:
  513 ifeq ($(CONFIG_PROGMAN),y)
  514 	-rm  -f $(ROOTDIR)$(MENUPATH)/$(PROGRAM)
  515 endif
  516 ifneq ($(HAS_APPLICATIONS),)
  517 	-rm  -f $(ROOTDIR)$(HAS_APPLICATIONS)/bed-binary-editor.desktop
  518 endif
  519 ifeq ($(CONFIG_XBED),y)
  520 	-rm -f $(BINDIR)/$(XPROGRAM)
  521 	-rm  -f $(MANDIR)/$(XPROGRAM).1
  522 endif
  523 	-rm  -f $(CONFDIRLINK)
  524 	-rm -f $(BINDIR)/$(EXEPROGRAM)
  525 	-rm  -f $(MANDIR)/$(PROGRAM).1
  526 	-rm -fr $(CONFDIR)
  527 
  528 bed.menu:mkmenu.sh config
  529 	CONDIRLINK=$(CONFDIRLINK) MENUNAME=$(MENUNAME) XMENUNAME=$(XMENUNAME) BEDMENU=$(BEDMENU) XBEDMENU=$(XBEDMENU) BINDIR=$(BINDIR) PROGRAM=$(PROGRAM)  XPROGRAM=$(XPROGRAM) bash ./mkmenu.sh > bed.menu
  530 
  531 cprpm:
  532 	cp /usr/src/redhat/RPMS/i386/bed-$(VERSION)*.rpm ../html/download
  533 	cp /usr/src/redhat/SRPMS/bed-$(VERSION)*src*.rpm ../html/download
  534 
  535 
  536 CONFDIRLINKER=$(shell echo '$(CONFDIRLINK)'| sed -e 's/\//\\\//g' )
  537 README: .start.txt .common.txt
  538 	cat .start.txt > README
  539 	sed 's/CONFDIRLINK/$(CONFDIRLINKER)/g' < .common.txt >>README
  540 	
  541 pkg/pkg-plist:
  542 	-rm $@
  543 	@FILES=`for afile in $(BINDIST); do  test -e $$afile&&echo $$afile ;done`;PREFIXX=`echo $(prefix)|sed -e 's/\\//\\\\\\//g' `;find  $$FILES ! -type d ! -name *bed.1 -print | sed -e s/$$PREFIXX'\///g'|$(SORT) >> $@  ;find  $$FILES -type d  -a  -print |$(SORT) -r|sed -e s/$$PREFIXX'\//\@dirrm\ /g' >> $@ 
  544 #	echo '@unexec rm %D/share/bed' >> $@
  545 #;echo $(CONFDIRLINK) |sed -e s/$$PREFIXX'\///g'>>$@
  546 #sed -e 's/$$PREFIXX/\@dirrm/g'
  547 
  548 ./has_file: has_file.c
  549 	$(TOBUILDCC) has_file.c -o has_file
  550 
  551 plugins/examples/inlinklist:
  552 	$(MAKE) -C plugins/examples makeinlinklist
  553 
  554 dep: ./has_appl ./has_file plugins/examples/inlinklist
  555 	$(MAKE) -C src mainprocedures.h
  556 	$(MAKE) -C plugins/examples dep
  557 	$(MAKE) -C src dep
  558 
  559 undos:
  560 	file `find .	 -type f`|grep CRLF|cut -d : -f 1|xargs d2u
  561 
  562 linuxdebug: 
  563 	bash ./configure --prefix=/usr
  564 	mv ./config ./config.bak
  565 	sed -e '{s/^CONFIG_DEBUG=.*/CONFIG_DEBUG=m/g;s/^CONFIG_MMAP=.*/CONFIG_MMAP=n/g;s/^prefix=.*/prefix=\/usr/g;}' < ./config.bak > ./config
  566 	echo '#define DLDEFAULTCOLORS 1' >> src/confdefines.h
  567 linuxconfig: 
  568 	bash ./configure --prefix=/usr
  569 	mv ./config ./config.bak
  570 	sed -e '{s/^CONFIG_DEBUG=.*/CONFIG_DEBUG=n/g;s/^prefix=.*/prefix=\/usr/g;}' < ./config.bak > ./config
  571 #	sed -e '{s/^CONFIG_DEBUG=.*/CONFIG_DEBUG=n/g;s/^CONFIG_MMAP=.*/CONFIG_MMAP=y/g;s/^prefix=.*/prefix=\/usr/g;}' < ./config.bak > ./config
  572 	echo '#define DLDEFAULTCOLORS 1' >> src/confdefines.h
  573 #	echo '#define NCURSESLIB libncurses.so.5' >> src/defines.h
  574 staticconfig: 
  575 	bash ./configure
  576 	mv ./config ./config.bak
  577 	sed -e '{s/^CONFIG_STATIC=.*/CONFIG_STATIC=y/g;s/^CONFIG_DEBUG=.*/CONFIG_DEBUG=n/g;s/^CONFIG_MMAP=.*/CONFIG_MMAP=y/g;s/^prefix=.*/prefix=\/usr/g;}' < ./config.bak > ./config
  578 	echo '#define DLDEFAULTCOLORS 1' >> src/confdefines.h
  579 
  580 nwinconfig: 
  581 	echo 'CURSESLIB=ncurses' >> settings
  582 	bash ./configure
  583 	mv ./config ./config.bak
  584 	sed -e 's/^CONFIG_DEBUG=.*/CONFIG_DEBUG=n/g' < ./config.bak > ./config
  585 nwindebugconfig: 
  586 	echo 'CURSESLIB=ncurses' >> settings
  587 	bash ./configure
  588 	mv ./config ./config.bak
  589 	sed -e 's/^CONFIG_DEBUG=.*/CONFIG_DEBUG=m/g' < ./config.bak > ./config
  590 nwindebug: realclean nwindebugconfig dep all
  591 	
  592 winconfig: 
  593 	echo 'CURSESLIB=pdcurses' >> settings
  594 	bash ./configure
  595 	mv ./config ./config.bak
  596 	sed -e '{s/^CONFIG_STATIC=.*/CONFIG_STATIC=y/g;s/^HAVE_MAGIC_H=.*/HAVE_MAGIC_H=0/g;s/^CONFIG_DEBUG=.*/CONFIG_DEBUG=n/g;s/LINKINDYN.*file.plug/#&/g;}' < ./config.bak > ./config
  597 androidconfig: 
  598 	echo 'CURSESLIB=ncurses' >> settings
  599 	echo 'CPPFLAGS+=-D__ANDROID_API__=17' >> settings
  600 	bash ./configure --host=arm-linux-androideabi --prefix=/data/local
  601 	mv ./config ./config.bak
  602 	sed -e '{s/^HAVE_MAGIC_H=.*/HAVE_MAGIC_H=0/g;s/^CONFIG_DEBUG=.*/CONFIG_DEBUG=n/g;s/^CONFIG_PLUGIN=.*/CONFIG_PLUGIN=n/g;s/^UNIXPLUGINS=.*/UNIXPLUGINS=n/g;s/LINKINDYN+=index2table.plug//g;s/LINKINDYN+=elftables32.plug//g;}' < ./config.bak > ./config
  603 windebugconfig2: 
  604 	echo 'CURSESLIB=pdcurses' >> settings
  605 	bash ./configure
  606 	mv ./config ./config.bak
  607 	sed -e '{s/^CONFIG_DEBUG=.*/CONFIG_DEBUG=m/g;s/LINKINDYN.*file.plug/#&/g;}' < ./config.bak > ./config
  608 windebugconfig: 
  609 	echo 'CURSESLIB=pdcurses' >> settings
  610 	bash ./configure
  611 	mv ./config ./config.bak
  612 	sed -e '{s/^#export BIOSDISK=y/export BIOSDISK=y/g;s/^CONFIG_DEBUG=.*/CONFIG_DEBUG=m/g;s/LINKINDYN.*file.plug/#&/g;}' < ./config.bak > ./config
  613 
  614 tryconfig: 
  615 	mv ./config ./config.bak
  616 	sed -e '{s/^#export BIOSDISK=y/export BIOSDISK=y/g;s/^CONFIG_DEBUG=.*/CONFIG_DEBUG=m/g;s/LINKINDYN.*file.plug/#&/g;}' < ./config.bak > ./config
  617 
  618 windebug: realclean windebugconfig dep all
  619 
  620 winbug:
  621 	make windebug > /tmp/pderror 2>&1 3>&1
  622 #s/configure.in/configure.ac/g
  623 src/defines.h.in: configure.ac	
  624 	echo '#ifndef DEFINES_H' >src/defines.h.in
  625 	echo '#define DEFINES_H' >>src/defines.h.in
  626 	sed -f mkdefs.sed < configure.ac|grep '^#undef'|sort|uniq>> src/defines.h.in
  627 	echo '#endif' >>src/defines.h.in
  628 show:
  629 	echo $(PROGMANEXTRA)
  630 
  631 
  632 left:
  633 	find . -name *.o* -o -name *.i -o -name *.ii* -o -name *core* -o -name *.exe -o -name *.bak -o -name *~ 
  634 	-ls pkg/work 
  635 	-ls debian/tmp
  636 
  637 linuxall: linuxconfig dep all 
  638 
  639 DEBPACKAGE=$(DISTPATH)/download/bed_$(VERSION)_i386.deb
  640 DEBPATCH=$(DISTPATH)/download/bed_$(VERSION)_i386.deb.patch
  641 
  642 patch: 	$(DEBPACKAGE)
  643 	binpatch $(FULLELFFILE) $(DEBPACKAGE) $(DEBPATCH) -c -l -O
  644 
  645 deb: 	$(DEBPACKAGE)
  646 
  647 debstart:
  648 	cat debhead > $@
  649 	./getsize $(FULLELFFILE) >>$@
  650 $(DEBPACKAGE):debstart $(FULLELFFILE)
  651 	cat debstart $(FULLELFFILE) >>$@
  652 
  653 window:
  654 	ls  -l  '$(ALLUSERSPROFILE)/Menu Start/bed.lnk'
  655 
  656 dubwindist:
  657 		make realclean
  658 		make winconfig;make dep;make
  659 		make dubrest
  660 
  661 	
  662 dubrest:
  663 	make install
  664 	make dubrestinstalled
  665 
  666 dubrestinstalled:
  667 		mv $(WINDIR)/bed.exe $(WINDIR)/bedp.exe
  668 		make realclean
  669 		make nwinconfig;make dep;make
  670 		make install
  671 		mv $(WINDIR)/bed.exe $(WINDIR)/bedn.exe
  672 		make bedpatch
  673 bedpatch:
  674 		cp e:/usr/bin/binpatchg.exe 'c:/Program Files/bed/binpatch.exe'
  675 		binpatch $(WINDIR)/bedp.exe $(WINDIR)/bedn.exe 'c:/Program Files/bed/bedpatch' -c -l -O -u5
  676 		cp $(WINDIR)/bedp.exe $(WINDIR)/bed.exe
  677 towin:
  678 	cp $(DISTPATH)/download/$(PROGRAM)-$(VERSION).src$(TGZSUF) /c/cygwin/home/jka/html/download
  679 	cp $(DISTPATH)/download/$(ELFARGFILE) /c/cygwin/home/jka/html/download
  680 
  681 dochier: 
  682 	$(MAKE) -C doc bed.html
  683 	$(MAKE) -C doc bed.txt
  684 	cp doc/bed.html bed.htm
  685 	cp doc/bed.txt bed.txt
  686 	u2d bed.txt
  687 
  688 ifneq ($(HAS_RE_SEARCH),y)
  689 $(REGEX):
  690 		$(MAKE) CFLAGS="$(CFLAGS)" -C  $(REGEX_DIR) regex.o
  691 endif
  692 
  693 ls:
  694 	-ls -l    $(ROOTDIR)$(BINDIR)/$(EXEPROGRAM)
  695 	-ls -l    $(ROOTDIR)$(CONFDIRLINK)
  696 	-ls -l   $(ROOTDIR)$(MENUPATH)/$(PROGRAM)
  697 	-ls -l    $(CONFDIRLINK)
  698 	-ls -l   $(BINDIR)/$(EXEPROGRAM)
  699 	-ls -l   $(CONFDIR)
  700 
  701 
  702 flags:
  703 	echo $(CFLAGS)
  704 
  705 
  706 os:
  707 	echo $(OS)
  708 ifeq ($(OpSys),Windows)
  709 	echo window
  710 else
  711 	echo not	
  712 endif
  713 
  714 windir:
  715 	echo $(WINDIR)
  716 	echo $(windir)
  717 zipcom:
  718 	echo 	zip -z -r ../html/download/bed-$(VERSION).win32.zip bedwin32.txt  $(CONFDIR) $(BINDIR)/cygwin1.dll $(BINDIR)/$(EXEPROGRAM) '$(ALLUSERSPROFILE)/Menu Start/bed.lnk' 'c:/windows/Start Menu/bed.lnk'
  719 
  720 GET=1
  721 res=$(shell if test $(GET) -gt 2;then echo groter;else echo kleiner ;fi)
  722 #res=$(shell echo hallo;echo niets)
  723 gets:
  724 	echo $(res)
  725 
  726 
  727 copyright:
  728 	ln  -s LICENSE $(BEDBASE).copyright
  729 
  730 pad:
  731 	bash ../html/mkbedpad.sh $(VERSION)
  732 
  733 
  734 sign2: $(DISTPATH).sign2 
  735 %.sign2:
  736 	-$(PGPSIGNPROG)   --comment $(RPMFILE) $*/download/$(RPMFILE) 
  737 	-$(PGPSIGNPROG)   --comment $(NONSTATICARGFILE32) $*/download/$(NONSTATICARGFILE32) 
  738 	-$(PGPSIGNPROG)   --comment $(NONSTATICARGFILE64) $*/download/$(NONSTATICARGFILE64) 
  739 	 $(PGPSIGNPROG)   --comment $(NONSTATICARGFILE_ARMHF) $*/download/$(NONSTATICARGFILE_ARMHF) 
  740 	 $(PGPSIGNPROG)   --comment $(ANDROIDARGFILE) $*/download/$(ANDROIDARGFILE) 
  741 	-$(PGPSIGNPROG)   --comment $(SRCARGFILE) $*/download/$(SRCARGFILE) 
  742 	-$(PGPSIGNPROG)   --comment $(WIN32ARGFILE) $*/download/$(WIN32ARGFILE) 
  743 	-$(PGPSIGNPROG)   --comment $(NWIN32ARGFILE) $*/download/$(NWIN32ARGFILE) 
  744 	-$(PGPSIGNPROG)   --comment $(WIN95ARGFILE) $*/download/$(WIN95ARGFILE) 
  745 	-$(PGPSIGNPROG)   --comment $(FREEBSDARGFILE) $*/download/$(FREEBSDARGFILE) 
  746 	-$(PGPSIGNPROG)   --comment $(OPENSOLARISFILE) $*/download/$(OPENSOLARISFILE) 
  747 	-make $*/download/$(LSMFILE) 
  748 
  749 
  750 sign3: $(DISTPATH).sign3 
  751 %.sign3:
  752 	$(PGPSIGNPROG)   --comment $(SRCARGFILE) $*/download/$(SRCARGFILE) 
  753 	-$(PGPSIGNPROG)   --comment $(WIN64ARGFILE) $*/download/$(WIN64ARGFILE) 
  754 #	$(PGPSIGNPROG)   --comment $(NWIN64ARGFILE) $*/download/$(NWIN64ARGFILE) 
  755 	$(PGPSIGNPROG)   --comment $(NONSTATICARGFILE64) $*/download/$(NONSTATICARGFILE64) 
  756 	-$(PGPSIGNPROG)   --comment $(ANDROID64ARGFILE) $*/download/$(ANDROID64ARGFILE) 
  757 
  758 #UNINSTALLFILE=$(ROOTDIR)$(CONFDIR)/uninstallbed.sh
  759 UNINSTALLFILE=/tmp/uninstallbed.sh
  760 
  761 #s/$(ROOTDIR)$(CONFDIR)\/uninstallbed.sh/$(UNINSTALLFILE)/g
  762 
  763 mkun:
  764 	@cp uninstallhead $(UNINSTALLFILE)
  765 	@echo $(BINDIST)
  766 	@FILES=`for afile in $(BINDIST); do  test -e $$afile -o -L $$afile&&echo $$afile ;done`;if test . != .$(ROOTDIR); then SLASHROOT=`echo $(ROOTDIR)| sed -e 's/\\//\\\\\\//g'`;fi;find  $$FILES ! -type d -print |if test . != .$(ROOTDIR);then sed -e "s/$$SLASHROOT//g";else cat;fi |xargs echo $(REMOVE) ' ' >> $(UNINSTALLFILE) ;find  $$FILES -type d  -a  -print| if test . != .$(ROOTDIR);then sed -e "s/$$SLASHROOT//g";else cat;fi |$(SORT) -r|xargs echo $(RMDIR) ' ' >> $(UNINSTALLFILE)
  767 	@echo Uninstall with sh $(UNINSTALLFILE)
  768 
  769 
  770 hosttest:hosttest.cc
  771 	$(CXX) $(CXXFLAGS)  $< -o $@
  772 
  773 hasf:
  774 	echo $(HAS_FILE);
  775 showvar:
  776 	echo $(BINDIR)
  777 
  778 
  779 
  780 hasreg:
  781 	echo .$(HAS_RE_SEARCH).
  782 ifneq ($(HAS_RE_SEARCH),y)
  783 	echo no HAS_RE_SEARCH yes
  784 endif
  785 build2:
  786 	grep  BUILDEXEEXT build > build2
  787 	echo "HAS_FILE := $(shell $(BEDSRCDIR)/has_file)" >> build2
  788 
  789 # sed -e '/.files. . ./r termux-files' < termux-manifest.in   > /tmp/uit2
  790 termux-files.in: termux-root Makefile
  791 	find termux-root/data/data/com.termux/files/usr/ > termux-files.in
  792 
  793 termux-files: termux-files.in
  794 	sed -e 's/^termux-root\/data\/data\/com.termux\/files\/usr\/\(.*\)$$/\"&\": \"\1\",/'  termux-files.in |head -c -2 > termux-files
  795 #	sed -e 's/^.*$$/\"termux-root\/data\/data\/com.termux\/files\/usr\/&\": \"&\",/'  termux-files.in |head -c -2 > termux-files
  796 
  797 termux-manifest.json:termux-manifest.in config termux-files
  798 	sed -e '/files/r termux-files' -e "s/VERSION/$(VERSION)/" -e "s/HOST_CPU/$(HOST_CPU)/" -e "s/TITLE/`cat title`/" < termux-manifest.in > termux-manifest.json
  799 
  800