Makefile BSD

From 탱이의 잡동사니
Revision as of 08:51, 15 August 2016 by Pchero (talk | contribs)
Jump to navigation Jump to search

Overview

BSD makefile 내용 정리.

Conditional Statements(#if, #ifndef etc..)

.if $(VER) >= 2.4
  TAG = 2.4_current
.elif $(VER) == 2.3
  TAG = 2.3_release
.else
  TAG = 2.4_stable
.endif

exists(<arg>)

clean:
    -rm -f *.o *.core
.if exists(tmp)
    -rm tmp/*.o
.endif

See also